package com.nnnu.wsnackshop.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "评价 VO")
public class ReviewVO {
    @Schema(description = "评价ID")
    private Integer id;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户昵称")
    private String username;

    @Schema(description = "用户头像URL")
    private String userAvatar;
    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "商品ID")
    private Integer productId;

    @Schema(description = "SKU ID")
    private Integer skuId;

    @Schema(description = "评分 (1-5)")
    private Integer rating;

    @Schema(description = "评论内容")
    private String comment;

    @Schema(description = "评论图片URL列表（JSON字符串）")
    private String images;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
}